#ifndef SOUNDBUFFER_H
#define SOUNDBUFFER_H

#include <QObject>
#include <vector>
#include "SoundPacket.h"

class SoundBuffer : public QObject
{
	Q_OBJECT

public:
	SoundBuffer(size_t size, QObject *parent = 0);
	~SoundBuffer();

private:
	std::vector<SoundPacket*>		_buffer;
	size_t							_capacity;
	size_t							_index;

public:
	SoundPacket						*get();
	
};

#endif // SOUNDBUFFER_H
